<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title th:text="@{${blog.title} + ' - M博客'}"></title>
    <meta name="keywords" th:content="@{${blog.title}+' Java面试题 Java笔记 源码解析'}" />
    <meta name="description" th:content="${blog.summary}" />
    <link rel="stylesheet" href="http://tv.speechb.com/lib/superui/content/ui/global/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="http://tv.speechb.com/web/css/article_content.1.3.css">
    <link rel="stylesheet" href="http://tv.speechb.com/web/css/recommend.css">
    <link href="http://tv.speechb.com/lib/imgs/logo.png" rel="shortcut icon"/>
    <link rel="stylesheet" href="http://tv.speechb.com/editor_md/css/editormd.preview.css" />
<style>
    .editor1 {
        width: 80px;
        height: 32px;
        border-radius: 2px;
        color: #fff;
        background: #399eff;
        font-size: 14px;
        line-height: 36px;
        text-align: center;
        cursor: pointer;
        position: absolute;
        right: 30px;
    }
</style>
</head>
<body>
<div th:replace="web/app/header"></div>
<div class="container">
    <div class="row current_pos">当前位置：<a href="/">首页</a> - <a th:href="${current_url}" >博客</a> - 正文 </div>
    <div class="row" style="margin-bottom: 16px">
        <div class=" col-lg-12">
            <div class="content">
                <a th:if="${blog.canEdit}" th:href="'/publish?id=' + ${blog.id}" class="editor1">编辑</a>
                <h2 class="page_title" th:text="${blog.title}">标题</h2>
                <div class="article-info">
                    <span class="info-s" th:text="'更新时间：'+${blog.create_time}">更新时间：2019.03.20 11:27:35</span>
                    <span class="info-s" th:text="@{'阅读数：'+ ${blog.scan_count}}">&nbsp;来源：&nbsp;花镇情感网</span>
                    <span class="info-s" th:text="' 发布者：' + ${blog.username}"></span>
                </div>
                <div id="editormd-view1" class="article-content">
                    <textarea id="append-test" style="display:none;" th:utext="${blog.markdown_content}">
                    </textarea>
                </div>
            </div>
        </div>

    </div>
</div>
<script src="/static/web/js/check_login_status.1.3.js"></script>
<script src="http://tv.speechb.com/editor_md/examples/js/jquery.min.js"></script>
<script src="http://tv.speechb.com/editor_md/editormd.js"></script>

<script src="http://tv.speechb.com/editor_md/lib/marked.min.js"></script>
<script src="http://tv.speechb.com/editor_md/lib/prettify.min.js"></script>

<script src="http://tv.speechb.com/editor_md/lib/raphael.min.js"></script>
<script src="http://tv.speechb.com/editor_md/lib/underscore.min.js"></script>
<script src="http://tv.speechb.com/editor_md/lib/sequence-diagram.min.js"></script>
<script src="http://tv.speechb.com/editor_md/lib/flowchart.min.js"></script>
<script src="http://tv.speechb.com/editor_md/lib/jquery.flowchart.min.js"></script>

<script src="http://tv.speechb.com/editor_md/editormd.js"></script>
<script>
    editormd.markdownToHTML("editormd-view1", {
        htmlDecode      : "style,script,iframe",  // you can filter tags decode
        emoji           : true,
        taskList        : true,
        tex             : true,  // 默认不解析
        flowChart       : true,  // 默认不解析
        sequenceDiagram : true,  // 默认不解析
    });
</script>
</body>
</html>
